const express = require('express');

const shopController = require('../controllers/shop');

const router = express.Router();

router.get('/', shopController.getIndex);

router.get('/product-list', shopController.getProductList);

router.get('/product-detail/:prodId', shopController.getProductDetail);

router.get('/cart', shopController.getCart);

router.post('/cart-add', shopController.postCartAdd);

router.post('/cart-delete', shopController.postCartDelete);

router.post('/create-order', shopController.postOrder);

router.get('/order', shopController.getOrder);

module.exports = router;